/*代理端——点数配置*/
import request from '@/utils/request';

// 根据oemId查询阿里云短信配置
export async function getSiteSmsConfig(data) {
  const res = await request.post(
    '/business/sitesmsconfig/getSiteSmsConfig',
    data
  );
  if (res.data.code === 2000) {
    return res.data;
  }
  return Promise.reject(new Error(res.data.msg));
}

// 新增修改
export async function siteSmssave(data) {
  const res = await request.post('/business/sitesmsconfig/save', data);
  if (res.data.code === 2000) {
    return res.data;
  }
  return Promise.reject(new Error(res.data.msg));
}
